﻿using Localization.Resources.AbpUi;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;

namespace Artizan.Iot.Hub.Mqtt.HttpApi
{
    [DependsOn(
            typeof(AbpAspNetCoreMvcModule),
            typeof(ArtizanIotHubMqttApplicationContractsModule)
        )]
    public class ArtizanIotHubMqttHttpApiModule : AbpModule
    {
        public override void PreConfigureServices(ServiceConfigurationContext context)
        {
            //PreConfigure<IMvcBuilder>(mvcBuilder =>
            //{
            //    mvcBuilder.AddApplicationPartIfNotExists(typeof(ArtizanIotHubMqttHttpApiModule).Assembly);
            //});
        }

        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpLocalizationOptions>(options =>
            {
                //options.Resources
                //    .Get<ArtizanIotHubResource>()
                //    .AddBaseTypes(typeof(AbpUiResource));
            });
        }
    }
}
